import QtQuick 1.1
import com.nokia.symbian 1.1

SelectionDialog {
    id: root

    signal imageMarginSize(int margin)

    Component.onCompleted: {
        imageMargins.append({modelData: qsTr("Yes"),
                              sizeMargin: 6})
        imageMargins.append({modelData: qsTr("No"),
                              sizeMargin: 0})
    }

    titleText: qsTr("Use margins in image")
    model: ListModel{
        id: imageMargins
    }

    onSelectedIndexChanged: {
        root.imageMarginSize(model.get(selectedIndex).sizeMargin)
    }

}

